<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css3-checkbox</title>
    <link href="https://cdn.bootcss.com/normalize/7.0.0/normalize.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/css3checkbox.css">
    <style>
        html, body {
            display: flex;
            min-height: 100%;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            font-family: sans-serif;
        }
        ul, li {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .tg-list{
            text-align: center;
            display: flex;
            align-items: center;
        }
        .tg-list-item{
            margin: 0 2em;
        }
        h2{
            color: #777;
        }
        h4{
            color: #999;
        }
    </style>
</head>
<body>

<h2>css3-checkbox Demo</h2>
<ul class='tg-list'>
    <li class='tg-list-item'>
        <h4>Light</h4>
        <input class='tgl tgl-light' id='cb1' type='checkbox'>
        <label class='tgl-btn' for='cb1'></label>
    </li>
    <li class='tg-list-item'>
        <h4>iOS 7</h4>
        <input class='tgl tgl-ios' id='cb2' type='checkbox'>
        <label class='tgl-btn' for='cb2'></label>
    </li>
    <li class='tg-list-item'>
        <h4>Skewed</h4>
        <input class='tgl tgl-skewed' id='cb3' type='checkbox'>
        <label class='tgl-btn' data-tg-off='关' data-tg-on='开' for='cb3'></label>
    </li>
    <li class='tg-list-item'>
        <h4>Flat</h4>
        <input class='tgl tgl-flat' id='cb4' type='checkbox'>
        <label class='tgl-btn' for='cb4'></label>
    </li>
    <li class='tg-list-item'>
        <h4>Flip</h4>
        <input class='tgl tgl-flip' id='cb5' type='checkbox'>
        <label class='tgl-btn' data-tg-off='否' data-tg-on='是' for='cb5'></label>
    </li>
</ul>
</body>
</html>